#include <compat/strops.h>

/* mystrtok - safe tokenizer */
char* lstrtok(char **src, const char *sep)
{
	char   *start = *src;
	char   *end;

	start += strspn(start, sep);
	if (*start == 0) {
		*src = start;
		return 0;
	}

	end = start + strcspn(start, sep);
	if (*end != 0)
		*end++ = 0;
	*src = end;
	return start;
}


